<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.5.1/dist/echarts.min.js"></script>
</head>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
<script type="text/javascript">
    var myChart = echarts.init(document.getElementById('main'));
    var app = {};
    let option;

    // var chartDom = document.getElementById('main');


    option = {
        title: [
            {
                text: '各平台各模块使用情况统计',
                left: 'center',
                top: "10px"
            }
        ],
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'shadow'
            }
        },
        legend: {
            // data: dimensions,
            top: "30px"
        },
        xAxis: {type: 'category'},
        yAxis: {},
        axisTick: {
            alignWithLabel: true
        },
        dataset: {
            source: [
                ['测试', 'A', 'B', 'C', 'D', 'E'],
                ['会议', 10, 22, 28, 43, 49],
                ['活动', 5, 4, 3, 5, 10]
            ]
        },
        series: new Array(5).fill({type: 'bar'})
    };

    option && myChart.setOption(option);

</script>
</body>
</html>
